package com.gaodun.hk.integration;

import com.gaodun.hk.common.response.BasicResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author fengyamin
 * @date 2021/01/26
 **/
@FeignClient(name = "luffyClient", url = "https://t-luffy.gaodunwangxiao.com")
public interface LuffyClient {

    /**
     * 获取微信Token
     *
     * @param appid
     * @return
     */
    @GetMapping("/api/v1/wechatDev/accessToken")
    BasicResponse getAccessToken(@RequestParam("appid") String appid);

}
